<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>七色海棠 - 微办公</title>

<script language="javascript" src="__PUBLIC__/jquery/jquery.js"></script>
<link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header layui-bg-green">
		<div class="layui-logo" style="color:#FFFFFF;">七色海棠 | 微办公</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item"><a href="__URL__/index/main" target="main"><i class="layui-icon">&#xe68e;</i> 控制中心</a></li>
            <li class="layui-nav-item"><a href="__URL__/user" target="main"><i class="layui-icon">&#xe613;</i> 组织架构</a></li>
            <li class="layui-nav-item"> <a href="javascript:;"><i class="layui-icon">&#xe62a;</i> 我的应用</a>
                <dl class="layui-nav-child">
                    [!foreach item='v' name='nav_list'!]
                    <dd><a href="javascript:go_app('{!$v.app!}')">{!$v.name!}</a></dd>
                    [!/foreach!]
                </dl>
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right">
           <li class="layui-nav-item">{!$company.corp_name!}</li>
            <li class="layui-nav-item"> <a href="javascript:;"> <img src="{!$user.user_info.avatar!}" class="layui-nav-img"> {!$user.user_info.name!} [ {!$user.user_info.userid!} ]</a>
                <dl class="layui-nav-child">
                    <dd><a href="">基本资料</a></dd>
                    <dd><a href="">安全设置</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="__ROOT__/wx/login/login_out.html">退出登陆</a></li>
        </ul>
    </div>
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="nav" id="nav_box">
               
            </ul>
        </div>
    </div>
    <div class="layui-body"> 
        <!-- 内容主体区域 -->
        <iframe style="border: none; width: 100%; height: 99%;" scrolling="no" name="main" id="main" src=""></iframe>
						
    </div>
    <div class="layui-footer"> 
		<p align="center"> © www.gxqsht.com - 七色海棠 | 微办公</p>
	</div>
</div>
<script src="__PUBLIC__/layui/layui.all.js"></script> 
<script>
	$(function(){
		go_app('{!$now_app!}');
	})
	function go_app(app)
	{
		$.get('__URL__/index/get_nav_list?app='+app,function(data){
			$('#nav_box').html(data);
		})
		$('#main').attr('src','__URL__/'+app+'/index.html');
	}
</script>
</body>
</html>